/**
 * Created by Milo on 16/7/7.
 */

// 第一种方式
window.bankPay = function(args, success, failure) {
    cordova.exec(success, failure, 'bankPay', 'cmb', [args]);
};

// 第二种方式
// var exec = require("cordova/exec");
//
// var BankPay = {
//     test     : function(success, failure) {exec(success, failure, 'bankPay', 'test', []); },
//     check    : function(success, failure) {exec(success, failure, 'IonicDeploy', 'check', []); },
//     download : function(success, failure) {exec(success, failure, 'IonicDeploy', 'download', []); },
//     extract  : function(success, failure) {exec(success, failure, 'IonicDeploy', 'extract', []); },
//     redirect : function(success, failure) {exec(success, failure, 'IonicDeploy', 'redirect', []); }
// };
//
// module.exports = BankPay;

// 第三种方式
// var BankPay = function () {};
//
// BankPay.prototype.test = function (args, success, failure) {
//     cordova.exec(success, failure, 'bankPay', 'test', [args]);
// }
//
// module.exports = new BankPay();